<?
require("../common/auth.php");
$pid=intval($_REQUEST['pid']);
//查找进化表里是否有记录，有的话返回1，没有0
$a1=array();
if ($pid){
    $str="select id from pft_p_apply_evolute where status=0 and pid='$pid' limit 1";
    $GLOBALS['le']->query($str);
    if ($GLOBALS['le']->fetch_assoc()) $a1['status']=1;
    else $a1['status']=0;
}
echo json_encode($a1);
?>